package com.xnfh.planting.viewmodel
import com.xnfh.common.bean.FieldListBean
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager
import okhttp3.RequestBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/7 17:04
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/7 17:04
 * @UpdateRemark: 更新说明
 */
class PlantingViewModelRes: BaseRepository() {

    suspend fun requestFieldList(body: RequestBody, data: RespStateData<FieldListBean>) = dealResp(
        { ApiManager.api.requestFiels(body) }, data
    )
}